.resource-details {
  padding: 20px 0;
}

.resource-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.resource-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.resource-info p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.resource-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.resource-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface-hover);
  color: var(--text-primary);
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}

.action-btn.primary {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

.action-btn.danger {
  background: var(--error);
  color: white;
  border-color: transparent;
}

.resource-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.resource-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resource-thumbnail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.resource-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.resource-properties,
.resource-tags {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.resource-properties h3,
.resource-tags h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.property-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}

.property-item:last-child {
  border-bottom: none;
}

.property-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.property-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-hover);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.resource-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--divider);
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  padding: 30px;
}

.details-content h3,
.details-content h4 {
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.details-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.details-content ul {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
}

.preview-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.preview-placeholder h3 {
  margin: 16px 0 8px 0;
  color: var(--text-secondary);
}

.history-content h3 {
  color: var(--text-primary);
  margin: 0 0 20px 0;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  gap: 16px;
  padding: 16px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
}

.history-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.history-action {
  color: var(--text-primary);
  font-size: 14px;
}

.history-author {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}

@media (max-width: 768px) {
  .resource-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .resource-content {
    grid-template-columns: 1fr;
  }
  
  .resource-actions {
    justify-content: stretch;
  }
  
  .action-btn {
    flex: 1;
    justify-content: center;
  }
}
